import request from '@/utils/request'

// 查询投资计划报送列表
export function listInvestPlanSubmission(query) {
  return request({
    url: '/submission/investPlanSubmission/list',
    method: 'get',
    params: query
  })
}

// 查询投资计划报送详细
export function getInvestPlanSubmission(id) {
  return request({
    url: '/submission/investPlanSubmission/' + id,
    method: 'get'
  })
}

// 获取计划编码
export function gainProgramCode(deptId) {
  return request({
    url: '/submission/investPlanSubmission/gainProgramCode/' + deptId,
    method: 'get'
  })
}

// 保存投资计划报送
export function saveInvestPlanSubmission(data) {
  return request({
    url: '/submission/investPlanSubmission/save',
    method: 'post',
    data: data
  })
}

// 删除投资计划报送
export function delInvestPlanSubmission(id) {
  return request({
    url: '/submission/investPlanSubmission/' + id,
    method: 'delete'
  })
}

// 导出投资计划报送
export function exportInvestPlanSubmission(query) {
  return request({
    url: '/submission/investPlanSubmission/export',
    method: 'get',
    params: query
  })
}
